package com.baizhi.springboot.service.impl;

import com.baizhi.springboot.dao.ResourceDao;
import com.baizhi.springboot.entity.Resource;
import com.baizhi.springboot.service.Resourceservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class ResourceServiceImpl implements Resourceservice {
    @Autowired
    private ResourceDao resourceDao;
    @Override
    public List<Resource> selectAllResource() {
        return resourceDao.selectAllResource();
    }

    @Override
    public Set<String> selectResourceByRoles(Set<String> set) {
        return resourceDao.selectResourceByRoles(set);
    }
}
